﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FullOrderData" targetNamespace="http://tempuri.org/FullOrderData.xsd" xmlns:mstns="http://tempuri.org/FullOrderData.xsd" xmlns="http://tempuri.org/FullOrderData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="scfhsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="scfhsConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.scfhsConnectionString.ConnectionString" Provider="MySql.Data.MySqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="order_mainTableAdapter" GeneratorDataComponentClassName="order_mainTableAdapter" Name="order_main" UserDataComponentName="order_mainTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="scfhsConnectionString (Web.config)" DbObjectName="scfhs.order_main" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `order_main` WHERE ((`ID` = @Original_ID) AND (`OrderNumber` = @Original_OrderNumber))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_OrderNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `order_main` (`OrderNumber`, `OrderSubject`, `OrderClassificationNumber`, `OrderState`, `IsClosed`, `PersonName`, `PersonBirthPlace`, `personHighSchoolPlace`, `PersonIDNumber`, `PersonIDType`, `PersonNationality`, `PersonCurrentResidencePlace`, `PersonWorkPlace`, `PersonWorkPlaceType`, `OrderCreatedOn`, `OrderCreatedBy`, `OrderCompletedOn`, `OrderCompletedBy`, `OrderPrintedOn`, `OrderPrintedBy`, `OrderSoftcopy`) VALUES (@OrderNumber, @OrderSubject, @OrderClassificationNumber, @OrderState, @IsClosed, @PersonName, @PersonBirthPlace, @personHighSchoolPlace, @PersonIDNumber, @PersonIDType, @PersonNationality, @PersonCurrentResidencePlace, @PersonWorkPlace, @PersonWorkPlaceType, @OrderCreatedOn, @OrderCreatedBy, @OrderCompletedOn, @OrderCompletedBy, @OrderPrintedOn, @OrderPrintedBy, @OrderSoftcopy)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderSubject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderSubject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderClassificationNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderClassificationNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderState" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IsClosed" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonBirthPlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonBirthPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@personHighSchoolPlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="personHighSchoolPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonIDNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonIDNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonIDType" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonIDType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonNationality" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonNationality" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonCurrentResidencePlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonCurrentResidencePlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonWorkPlace" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonWorkPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonWorkPlaceType" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonWorkPlaceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderCreatedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderCreatedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderCreatedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderCreatedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderCompletedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderCompletedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderCompletedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderCompletedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderPrintedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderPrintedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderPrintedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderPrintedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderSoftcopy" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderSoftcopy" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT `ID`, `OrderNumber`, `OrderSubject`, `OrderClassificationNumber`, `OrderState`, `IsClosed`, `PersonName`, `PersonBirthPlace`, `personHighSchoolPlace`, `PersonIDNumber`, `PersonIDType`, `PersonNationality`, `PersonCurrentResidencePlace`, `PersonWorkPlace`, `PersonWorkPlaceType`, `OrderCreatedOn`, `OrderCreatedBy`, `OrderCompletedOn`, `OrderCompletedBy`, `OrderPrintedOn`, `OrderPrintedBy`, `OrderSoftcopy` FROM `order_main`</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `order_main` SET `OrderNumber` = @OrderNumber, `OrderSubject` = @OrderSubject, `OrderClassificationNumber` = @OrderClassificationNumber, `OrderState` = @OrderState, `IsClosed` = @IsClosed, `PersonName` = @PersonName, `PersonBirthPlace` = @PersonBirthPlace, `personHighSchoolPlace` = @personHighSchoolPlace, `PersonIDNumber` = @PersonIDNumber, `PersonIDType` = @PersonIDType, `PersonNationality` = @PersonNationality, `PersonCurrentResidencePlace` = @PersonCurrentResidencePlace, `PersonWorkPlace` = @PersonWorkPlace, `PersonWorkPlaceType` = @PersonWorkPlaceType, `OrderCreatedOn` = @OrderCreatedOn, `OrderCreatedBy` = @OrderCreatedBy, `OrderCompletedOn` = @OrderCompletedOn, `OrderCompletedBy` = @OrderCompletedBy, `OrderPrintedOn` = @OrderPrintedOn, `OrderPrintedBy` = @OrderPrintedBy, `OrderSoftcopy` = @OrderSoftcopy WHERE ((`ID` = @Original_ID) AND (`OrderNumber` = @Original_OrderNumber))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderSubject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderSubject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderClassificationNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderClassificationNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderState" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderState" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IsClosed" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonBirthPlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonBirthPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@personHighSchoolPlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="personHighSchoolPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonIDNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonIDNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonIDType" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonIDType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonNationality" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonNationality" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonCurrentResidencePlace" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonCurrentResidencePlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PersonWorkPlace" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PersonWorkPlace" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PersonWorkPlaceType" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="PersonWorkPlaceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderCreatedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderCreatedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderCreatedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderCreatedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderCompletedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderCompletedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderCompletedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderCompletedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderPrintedOn" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderPrintedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderPrintedBy" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="OrderPrintedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderSoftcopy" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderSoftcopy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_OrderNumber" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="OrderNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="OrderNumber" DataSetColumn="OrderNumber" />
              <Mapping SourceColumn="OrderSubject" DataSetColumn="OrderSubject" />
              <Mapping SourceColumn="OrderClassificationNumber" DataSetColumn="OrderClassificationNumber" />
              <Mapping SourceColumn="OrderState" DataSetColumn="OrderState" />
              <Mapping SourceColumn="IsClosed" DataSetColumn="IsClosed" />
              <Mapping SourceColumn="PersonName" DataSetColumn="PersonName" />
              <Mapping SourceColumn="PersonBirthPlace" DataSetColumn="PersonBirthPlace" />
              <Mapping SourceColumn="personHighSchoolPlace" DataSetColumn="personHighSchoolPlace" />
              <Mapping SourceColumn="PersonIDNumber" DataSetColumn="PersonIDNumber" />
              <Mapping SourceColumn="PersonIDType" DataSetColumn="PersonIDType" />
              <Mapping SourceColumn="PersonNationality" DataSetColumn="PersonNationality" />
              <Mapping SourceColumn="PersonCurrentResidencePlace" DataSetColumn="PersonCurrentResidencePlace" />
              <Mapping SourceColumn="PersonWorkPlace" DataSetColumn="PersonWorkPlace" />
              <Mapping SourceColumn="PersonWorkPlaceType" DataSetColumn="PersonWorkPlaceType" />
              <Mapping SourceColumn="OrderCreatedOn" DataSetColumn="OrderCreatedOn" />
              <Mapping SourceColumn="OrderCreatedBy" DataSetColumn="OrderCreatedBy" />
              <Mapping SourceColumn="OrderCompletedOn" DataSetColumn="OrderCompletedOn" />
              <Mapping SourceColumn="OrderCompletedBy" DataSetColumn="OrderCompletedBy" />
              <Mapping SourceColumn="OrderPrintedOn" DataSetColumn="OrderPrintedOn" />
              <Mapping SourceColumn="OrderPrintedBy" DataSetColumn="OrderPrintedBy" />
              <Mapping SourceColumn="OrderSoftcopy" DataSetColumn="OrderSoftcopy" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FullOrderData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="FullOrderData" msprop:Generator_UserDSName="FullOrderData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="order_main" msprop:Generator_TableClassName="order_mainDataTable" msprop:Generator_TableVarName="tableorder_main" msprop:Generator_TablePropName="order_main" msprop:Generator_RowDeletingName="order_mainRowDeleting" msprop:Generator_UserTableName="order_main" msprop:Generator_RowChangingName="order_mainRowChanging" msprop:Generator_RowEvHandlerName="order_mainRowChangeEventHandler" msprop:Generator_RowDeletedName="order_mainRowDeleted" msprop:Generator_RowEvArgName="order_mainRowChangeEvent" msprop:Generator_RowChangedName="order_mainRowChanged" msprop:Generator_RowClassName="order_mainRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="OrderNumber" msprop:Generator_ColumnVarNameInTable="columnOrderNumber" msprop:Generator_ColumnPropNameInRow="OrderNumber" msprop:Generator_ColumnPropNameInTable="OrderNumberColumn" msprop:Generator_UserColumnName="OrderNumber">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OrderSubject" msprop:Generator_ColumnVarNameInTable="columnOrderSubject" msprop:Generator_ColumnPropNameInRow="OrderSubject" msprop:Generator_ColumnPropNameInTable="OrderSubjectColumn" msprop:Generator_UserColumnName="OrderSubject" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OrderClassificationNumber" msprop:Generator_ColumnVarNameInTable="columnOrderClassificationNumber" msprop:Generator_ColumnPropNameInRow="OrderClassificationNumber" msprop:Generator_ColumnPropNameInTable="OrderClassificationNumberColumn" msprop:Generator_UserColumnName="OrderClassificationNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OrderState" msprop:Generator_ColumnVarNameInTable="columnOrderState" msprop:Generator_ColumnPropNameInRow="OrderState" msprop:Generator_ColumnPropNameInTable="OrderStateColumn" msprop:Generator_UserColumnName="OrderState" type="xs:int" />
              <xs:element name="IsClosed" msprop:Generator_ColumnVarNameInTable="columnIsClosed" msprop:Generator_ColumnPropNameInRow="IsClosed" msprop:Generator_ColumnPropNameInTable="IsClosedColumn" msprop:Generator_UserColumnName="IsClosed">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="45" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PersonName" msprop:Generator_ColumnVarNameInTable="columnPersonName" msprop:Generator_ColumnPropNameInRow="PersonName" msprop:Generator_ColumnPropNameInTable="PersonNameColumn" msprop:Generator_UserColumnName="PersonName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="80" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PersonBirthPlace" msprop:Generator_ColumnVarNameInTable="columnPersonBirthPlace" msprop:Generator_ColumnPropNameInRow="PersonBirthPlace" msprop:Generator_ColumnPropNameInTable="PersonBirthPlaceColumn" msprop:Generator_UserColumnName="PersonBirthPlace" type="xs:int" />
              <xs:element name="personHighSchoolPlace" msprop:Generator_ColumnVarNameInTable="columnpersonHighSchoolPlace" msprop:Generator_ColumnPropNameInRow="personHighSchoolPlace" msprop:Generator_ColumnPropNameInTable="personHighSchoolPlaceColumn" msprop:Generator_UserColumnName="personHighSchoolPlace" type="xs:int" />
              <xs:element name="PersonIDNumber" msprop:Generator_ColumnVarNameInTable="columnPersonIDNumber" msprop:Generator_ColumnPropNameInRow="PersonIDNumber" msprop:Generator_ColumnPropNameInTable="PersonIDNumberColumn" msprop:Generator_UserColumnName="PersonIDNumber">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PersonIDType" msprop:Generator_ColumnVarNameInTable="columnPersonIDType" msprop:Generator_ColumnPropNameInRow="PersonIDType" msprop:Generator_ColumnPropNameInTable="PersonIDTypeColumn" msprop:Generator_UserColumnName="PersonIDType" type="xs:int" />
              <xs:element name="PersonNationality" msprop:Generator_ColumnVarNameInTable="columnPersonNationality" msprop:Generator_ColumnPropNameInRow="PersonNationality" msprop:Generator_ColumnPropNameInTable="PersonNationalityColumn" msprop:Generator_UserColumnName="PersonNationality" type="xs:int" />
              <xs:element name="PersonCurrentResidencePlace" msprop:Generator_ColumnVarNameInTable="columnPersonCurrentResidencePlace" msprop:Generator_ColumnPropNameInRow="PersonCurrentResidencePlace" msprop:Generator_ColumnPropNameInTable="PersonCurrentResidencePlaceColumn" msprop:Generator_UserColumnName="PersonCurrentResidencePlace" type="xs:int" />
              <xs:element name="PersonWorkPlace" msprop:Generator_ColumnVarNameInTable="columnPersonWorkPlace" msprop:Generator_ColumnPropNameInRow="PersonWorkPlace" msprop:Generator_ColumnPropNameInTable="PersonWorkPlaceColumn" msprop:Generator_UserColumnName="PersonWorkPlace">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="80" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PersonWorkPlaceType" msprop:Generator_ColumnVarNameInTable="columnPersonWorkPlaceType" msprop:Generator_ColumnPropNameInRow="PersonWorkPlaceType" msprop:Generator_ColumnPropNameInTable="PersonWorkPlaceTypeColumn" msprop:Generator_UserColumnName="PersonWorkPlaceType" type="xs:int" />
              <xs:element name="OrderCreatedOn" msprop:Generator_ColumnVarNameInTable="columnOrderCreatedOn" msprop:Generator_ColumnPropNameInRow="OrderCreatedOn" msprop:Generator_ColumnPropNameInTable="OrderCreatedOnColumn" msprop:Generator_UserColumnName="OrderCreatedOn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OrderCreatedBy" msprop:Generator_ColumnVarNameInTable="columnOrderCreatedBy" msprop:Generator_ColumnPropNameInRow="OrderCreatedBy" msprop:Generator_ColumnPropNameInTable="OrderCreatedByColumn" msprop:Generator_UserColumnName="OrderCreatedBy" type="xs:int" minOccurs="0" />
              <xs:element name="OrderCompletedOn" msprop:Generator_ColumnVarNameInTable="columnOrderCompletedOn" msprop:Generator_ColumnPropNameInRow="OrderCompletedOn" msprop:Generator_ColumnPropNameInTable="OrderCompletedOnColumn" msprop:Generator_UserColumnName="OrderCompletedOn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OrderCompletedBy" msprop:Generator_ColumnVarNameInTable="columnOrderCompletedBy" msprop:Generator_ColumnPropNameInRow="OrderCompletedBy" msprop:Generator_ColumnPropNameInTable="OrderCompletedByColumn" msprop:Generator_UserColumnName="OrderCompletedBy" type="xs:int" minOccurs="0" />
              <xs:element name="OrderPrintedOn" msprop:Generator_ColumnVarNameInTable="columnOrderPrintedOn" msprop:Generator_ColumnPropNameInRow="OrderPrintedOn" msprop:Generator_ColumnPropNameInTable="OrderPrintedOnColumn" msprop:Generator_UserColumnName="OrderPrintedOn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OrderPrintedBy" msprop:Generator_ColumnVarNameInTable="columnOrderPrintedBy" msprop:Generator_ColumnPropNameInRow="OrderPrintedBy" msprop:Generator_ColumnPropNameInTable="OrderPrintedByColumn" msprop:Generator_UserColumnName="OrderPrintedBy" type="xs:int" minOccurs="0" />
              <xs:element name="OrderSoftcopy" msprop:Generator_ColumnVarNameInTable="columnOrderSoftcopy" msprop:Generator_ColumnPropNameInRow="OrderSoftcopy" msprop:Generator_ColumnPropNameInTable="OrderSoftcopyColumn" msprop:Generator_UserColumnName="OrderSoftcopy" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="personNationalityName" msprop:Generator_ColumnVarNameInTable="columnpersonNationalityName" msprop:Generator_ColumnPropNameInRow="personNationalityName" msprop:Generator_ColumnPropNameInTable="personNationalityNameColumn" msprop:Generator_UserColumnName="personNationalityName" type="xs:string" minOccurs="0" />
              <xs:element name="PersonCurrentResidencePlaceName" msprop:Generator_ColumnVarNameInTable="columnPersonCurrentResidencePlaceName" msprop:Generator_ColumnPropNameInRow="PersonCurrentResidencePlaceName" msprop:Generator_ColumnPropNameInTable="PersonCurrentResidencePlaceNameColumn" msprop:Generator_UserColumnName="PersonCurrentResidencePlaceName" type="xs:string" minOccurs="0" />
              <xs:element name="Point" msprop:Generator_ColumnVarNameInTable="columnPoint" msprop:Generator_ColumnPropNameInRow="Point" msprop:Generator_ColumnPropNameInTable="PointColumn" msprop:Generator_UserColumnName="Point" type="xs:string" minOccurs="0" />
              <xs:element name="DetailHeader" msprop:Generator_ColumnVarNameInTable="columnDetailHeader" msprop:Generator_ColumnPropNameInRow="DetailHeader" msprop:Generator_ColumnPropNameInTable="DetailHeaderColumn" msprop:Generator_UserColumnName="DetailHeader" type="xs:string" minOccurs="0" />
              <xs:element name="Indexer" msprop:Generator_ColumnVarNameInTable="columnIndexer" msprop:Generator_ColumnPropNameInRow="Indexer" msprop:Generator_ColumnPropNameInTable="IndexerColumn" msprop:Generator_UserColumnName="Indexer" type="xs:string" minOccurs="0" />
              <xs:element name="CompletedBy" msprop:Generator_ColumnVarNameInTable="columnCompletedBy" msprop:Generator_ColumnPropNameInRow="CompletedBy" msprop:Generator_ColumnPropNameInTable="CompletedByColumn" msprop:Generator_UserColumnName="CompletedBy" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1">
      <xs:selector xpath=".//mstns:order_main" />
      <xs:field xpath="mstns:OrderNumber" />
    </xs:unique>
    <xs:unique name="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:order_main" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>